package com.qixin.api.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qixin.api.bean.ComPtUser;
import com.qixin.api.bean.PtMoneyInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
  * 企业用户表 Mapper 接口
 * </p>
 *
 * @author 吕正睿
 * @since 2018-10-28
 */
public interface ComPtUserMapper extends BaseMapper<ComPtUser> {
	List<ComPtUser> login(@Param("param") Map map);
	List<ComPtUser> selectcompany(@Param("param") Map map,@Param("map")ComPtUser comPtUser);
	Integer updatepassword(@Param("param") Map map);
	Integer countMyPage(@Param("map")  Map map);
	//企业
	List<ComPtUser> selectALL(@Param("map") Map map);
	//企业认证总条数
	Integer countMyPage2(@Param("map")  Map map);
	List<ComPtUser> selectphone(@Param("map") Map map);
	Integer addmoney(@Param("param") Map map);
	Integer offmoney(@Param("param") Map map);
	int sepeople(@Param("id") Long id);
	int chargenum(@Param("id") Long id);
	long carnum(@Param("ptname") String ptname);
    String license(@Param("id")  Long id);
	int mov(@Param("id")  Long id);
	int countMyPage1( @Param("map") Map map,@Param("param") ComPtUser comPtUser);
	List<ComPtUser>  findUserAndRole( @Param("map") Map map,@Param("param") ComPtUser comPtUser);
	//给车辆分配资金之后更改企业余额
	int updatepartgivemoney(@Param("param") PtMoneyInfo ptMoneyInfo);
	//给车辆回收资金之后更改企业余额
	int updatepartremovemoney(@Param("param") PtMoneyInfo ptMoneyInfo);
	ComPtUser findUserInfoByUserIdForWeChart(@Param("userId") Long userId);
	ComPtUser findUserInfoByPtUserIdForWeChart(@Param("userId") Long userId);
//企业忘记密码
	int updatept(@Param("param") ComPtUser comPtUser);
}